//
//  CorgiEmoticonModel.swift
//  weibo
//
//  Created by Corgi on 17/3/30.
//  Copyright © 2017年 cocoaHangTou. All rights reserved.
//

import UIKit

class CorgiEmoticonModel: NSObject, NSCoding {

    var code: String?
    
    var type: String? {
    
        didSet {
        
            isEmoji = (type == "1")
        }
    }
    
    var chs: String?
    
    var png: String?
    
    var isEmoji: Bool = false
    
    var allPath: String?
    
    func encode(with aCoder: NSCoder) {
        
        self.yy_modelEncode(with: aCoder)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init()
        
        self.yy_modelInit(with: aDecoder)
    }
    
    override init() {
        super.init()
    }
}
